//
//  LoginView.h
//  BORGWORD
//
//  Created by 张国庆 on 15/11/17.
//  Copyright © 2015年 zgq. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DealerView.h"
#import <CommonCrypto/CommonDigest.h>
@protocol LoginViewDelegate <NSObject>

-(void)loginInSuccess;

@end

typedef void (^SetIPBlock)();

typedef void(^ loginSucessBlock) ();

@interface LoginView : UIView
{
    CGPoint pt;
    float keyBordHeight;
    float middleH;
    CGRect viewFrame;
    CGRect loginViewFrame;
    NSDictionary *salerInfo;
}
@property(nonatomic,strong)UIViewController *viewController;
@property(nonatomic,assign)id<LoginViewDelegate> delegate;
@property(nonatomic,strong)NSString *ENTITY_CODE;
@property(nonatomic,strong)NSString *ENTITY_NAME;
@property(nonatomic,strong)DealerView *myview;
@property(nonatomic,strong)SetIPBlock setipBlock;
@property(nonatomic,strong)loginSucessBlock loginBlock;
@property (weak, nonatomic) IBOutlet UIButton *siteBtn;
@property (weak, nonatomic) IBOutlet UITextField *userNameTextField;
@property (weak, nonatomic) IBOutlet UITextField *passWordTextField;
@property (weak, nonatomic) IBOutlet UIButton *IPBtn;
@property (weak, nonatomic) IBOutlet UIButton *AutomaticLoginBtn;
@property (weak, nonatomic) IBOutlet UIButton *loginBtn;
@property (weak, nonatomic) IBOutlet UIView *backGroundView;
@property (weak, nonatomic) IBOutlet UIView *myLoginView;
@property(nonatomic,strong)NSMutableArray *dealerArr;
@property (nonatomic, strong) NSDictionary *salerInfo;
+ (LoginView*)shareInstance ;
@end
